<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="${pageContext.request.contextPath }/resources/css/bootstrap.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath }/resources/css/bootstrap-theme.min.css" rel="stylesheet">
<script src="${pageContext.request.contextPath }/resources/js/jquery-1.11.1.min.js"></script>
<script src="${pageContext.request.contextPath }/resources/js/bootstrap.min.js"></script>
<link href="${pageContext.request.contextPath }/resources/css/common.css" rel="stylesheet">
<title>用户列表</title>
</head>
<body>
	<jsp:include page="../common/header.jsp">
		<jsp:param name="module" value="admin" />
		<jsp:param name="title" value="用户列表" />
	</jsp:include>
	
	<div class="main">
		<h3>用户列表</h3>
		<table class="table table-hover table-striped">
			<thead>
      			<tr>
         			<th>用户名</th>
         			<th>密码</th>
         			<th>手机号</th>
         			<th>邮箱</th>
      			</tr>
   			</thead>
   			<tbody>
   				<c:forEach items="${userList.rows }" var="user">
   					<tr>
   						<td>${user.userName }</td>
   						<td>${user.userPassword }</td>
   						<td>${user.userPhone }</td>
   						<td>${user.userEmail }</td>
   					</tr>
   				</c:forEach>
		   </tbody>
		</table>
		<jsp:include page="../common/pagination.jsp">
			<jsp:param name="pageNumber" value="${userList.pageNumber}" />
			<jsp:param name="pageSize" value="${userList.pageSize}" />
			<jsp:param name="total" value="${userList.total}" />
			<jsp:param name="url" value="${basePath}/user/list" />
		</jsp:include>
		<jsp:include page="../common/footer.jsp"></jsp:include>
	</div>
</body>
</html>
